home *** CD-ROM | disk | FTP | other *** search
/ Sports Illustrated for Kids - Awesome Athletes! / Sports Illustrated for Kids - Awesome Athletes!.iso / tr.dir / 00021_Score 3 Script.ls < prev    next >
Encoding:
Text File  |  1996-04-18  |  727 b   |  33 lines

  1. on exitFrame
  2.   global gTRGameObj, gTRHelpUp, gTREndGame, gTRButtInhibit, gSISystem, gSIActiveWindow, gSIHParentWnd
  3.   if gSISystem = "WIN" then
  4.     set vHWnd to gSIActiveWindow(mCall)
  5.     if vHWnd <> gSIHParentWnd then
  6.       go(the frame)
  7.       exit
  8.     end if
  9.   end if
  10.   if gTRHelpUp then
  11.     MenuRollOver(1)
  12.     UIRollover(46, 47)
  13.   else
  14.     MenuRollOver()
  15.     UIRollover(46, 47)
  16.     if mGetPopCount(gTRGameObj) > 29 then
  17.       set vMouse to point(the mouseH, the mouseV)
  18.       set vHotSpot to rect(400, 255, 500, 287)
  19.       if inside(vMouse, vHotSpot) then
  20.         set gTRButtInhibit to 1
  21.       end if
  22.       EndGame()
  23.       exit
  24.     end if
  25.     CheckForKnotHit()
  26.   end if
  27.   go(the frame)
  28. end
  29.  
  30. on mouseDown
  31.   CheckForPop()
  32. end
  33.